#!/bin/bash

# cd ~/*go
# cp -R ~/gitee/uwbwebapp/web/* ./web/
# ./kill.sh
# cd ~/gitee/uwbwebapp
# go build -o ~/uwbwebapp_go/cmd/main ./main.go
# go build -o ~/uwbwebapp_go/cmd/logger_client ./pkg/tools/logger_client/loggerclient.go
# go build -o ./cmd/logger_client ./pkg/tools/logger_client/loggerclient.go
# cd ~/*go
# ./run.sh
# cd ~/gitee/uwbwebapp
# cp conf/WebConfig.json ../uwbwebapp_go/conf

./kill.sh
go build -o ./cmd/main.exe ./main.go
cd ~/uwbwebapp_go/cmd/
kill -9 `cat ./pid`
cd ~/gitee/uwbwebapp
go build -o ~/uwbwebapp_go/cmd/main.exe ./main.go
cd ~/uwbwebapp_go/cmd/
nohup ./main.exe > ./run.log &
cat ./run.log
cd ~/gitee/uwbwebapp
go build -o ./cmd/logger_client ./pkg/tools/logger_client/loggerclient.go


